package com.ying.autoconfig;

import com.ying.interceptor.SpringMvcConfig;
import com.ying.properties.IpProperties;
import com.ying.service.IpCountService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author liujunjie
 * @Description description
 * @Note Hope we enjoy ourselves everday:)
 * @Date 2024-03-03 11:43
 **/
@EnableScheduling
//@EnableConfigurationProperties(IpProperties.class)
//因为EnableConfigurationProperties 生成bean的名称和spEl表达式冲突，改用import
@Import({IpProperties.class,SpringMvcConfig.class})
public class IpAutoConfiguration {

    @Bean
    public IpCountService ipCountService(){
        return  new IpCountService();
    }

}
